﻿function Utility() {
    this.getUrl = function (actionName, controllerName, urlData) {
        var root = location.protocol + '//' + location.host;
        var url = root + "/"
                + controllerName + "/"
                + actionName
                + "?time=" + new Date().getMilliseconds();
        if (urlData) {
            url = url + "&" + urlData;
        }
        return url;
    };
}